package Cinema.CinemaEntities;

import java.util.HashSet;
import java.util.Set;
import org.w3c.dom.Element;
import Cinema.DataLayer.IXmlParsable;
import Exceptions.WrongXMLElement;


/**
 * Represents a site with more than one theater(hall).
 * @author The Fuchtzeinsoft Team.
 *
 */
public class BigSite  extends Site implements IXmlParsable {

	/**
	 * construct a new Site instance.
	 * @param siteName - the name of the new site.
	 * @param siteLocation - the location of the new site.
	 */
	public BigSite(String siteName, Location siteLocation ,String city){
		super(siteName,siteLocation,city);
	}

	/**
	 * Construct a new Site instance according to an xmlElement.
	 * @param xmlElement - the XML element that describe the new Site.
	 * @throws WrongXMLElement
	 */
	public BigSite(boolean isRestoring, Element xmlElement) throws WrongXMLElement{
		super(xmlElement);
		initFromXml(isRestoring, xmlElement);
	}

	private HashSet<Theater> Theaters = new HashSet<Theater>();

	@Override
	public Set<Theater> getTheaters(){
		return Theaters;
	}
}
